﻿<div class="padding5left" style="height:100%;">
    <table id="overflagList" fit="true" class="" title="过期任务提醒" pagination="true" url="/PlanManagement/GetOverflagList"
        fitcolumns="true" singleselect="true">
        <thead>
            <tr>
                <th field="JobNo" sortable="true" width="180">任务编号</th>
                <th field="TaskName" sortable="true" width="140">任务名称</th>
                <th field="JobType" formatter="formatType" sortable="true" width="100">任务类型</th>
                <th field="Status" formatter="formatStatus" sortable="true" width="60">状态</th>
                <th field="CreateUserName" sortable="true" width="60">创建人</th>
                <th field="EndDate" sortable="true" formatter="DateFormate" width="100">过期时间</th>
            </tr>
        </thead>
    </table>
</div>

<script type="text/javascript">
    $(function () {
        $('#overflagList').datagrid({
            pageList: [20],
            pageSize:20,
            pageNumber: 1,
            onLoadSuccess: function (data) {
                $('.datagrid-btable').find('td').each(function () {
                    $(this).attr('title', $(this).text());
                });
            },
            onDblClickRow: function (rowIndex, rowData) {
                showModuleDialog('/PlanManagement/TaskDetail?UserRole=3&ID=' + rowData["ID"], 1080);
            }
        });

        var p2 = $('#overflagList').datagrid('getPager');
        $(p2).pagination({
            beforePageText: '第',
            afterPageText: '页&nbsp;共&nbsp;{pages}&nbsp;页',
            displayMsg: '当前显示{from} - {to}&nbsp;条记录&nbsp;共&nbsp;{total}&nbsp;条记录'

        });
    });
</script>
